package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Notice;
import cn.wolfcode.crm.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface INoticeService {
    void save(Notice notice);

    void delete(Long id);

    void update(Notice notice);

    Notice get(Long id);

    List<Notice> listAll();

    // 分页查询的方法
    PageInfo<Notice> query(QueryObject qo);


    List<Notice> selectByEmployeeId(Long id);

    void insertByEmployeeId(Long employeeId, Long id);

    Notice selectByNoticeId(Long employeeId, Long id);
}
